﻿using System.Web.UI;
using HelpersDotNet.Web;

namespace HelpersDotNet.Extensions
{
    public static partial class Extensions
    {
        public static Control FindControlRecursive(this Control c, string id)
        {
            return WebHelper.FindControlRecursive(c, id);
        }

        public static T FindControlRecursive<T>(this Control c, string id)
           where T : Control
        {
            return WebHelper.FindControlRecursive<T>(c, id);
        }
    }
}